#include <stdio.h>
#include <math.h>

int main() {
    printf("所有的水仙花数（三位数）：\n");
    
    for (int num = 100; num < 1000; num++) {
        int hundreds = num / 100;
        int tens = (num / 10) % 10;
        int units = num % 10;
        
        int sum = pow(hundreds, 3) + pow(tens, 3) + pow(units, 3);
        
        if (sum == num) {
            printf("%d\n", num);
        }
    }
    
    return 0;
}
